package org.barad.voiceuserinterface.widgets;

import org.barad.voiceuserinterface.SpeechProcessingManager;

public class Label extends Widget{
	private String text;
	
	public void interact() {
		if (isEnabled() && !isEmpty(text)) {
			SpeechProcessingManager.getInstance().speak(text, super.wordsPerMinute);
		}
	}

	public String getText() {
		return text;
	}
	
	public void setText(String text) {
		this.text = text;
	}
}
